Skip to content

refactor: replace custom logger with tracing and standard subscriber#130

Merged
Cleboost merged 1 commit into
masterfrom
refactor/standard-logging
May 10, 2026
Merged

refactor: replace custom logger with tracing and standard subscriber#130
Cleboost merged 1 commit into
masterfrom
refactor/standard-logging

Conversation

@Cleboost
Copy link
Copy Markdown
Owner

This pull request introduces structured logging to the project by replacing ad-hoc and print-based logging with the tracing crate and its subscriber. It removes the custom file-based log_debug function and updates log statements throughout the codebase to use the new logging framework. This will provide more flexible, configurable, and production-ready logging.

The most important changes are:

Logging infrastructure improvements:

  • Added tracing and tracing-subscriber dependencies to Cargo.toml to enable structured, leveled logging throughout the application.
  • Removed the custom log_debug function and all direct file-based logging from src/main.rs, replacing them with tracing macros (debug!, info!, error!). Initialized the subscriber with environment-based filtering and improved log formatting.

Codebase logging updates:

  • Replaced println! statements in src/ui/file_explorer.rs with tracing::debug! for drop events and file upload operations, ensuring all logs are consistent and configurable. [1] [2]

Application startup:

  • Added an informational log message at startup to indicate the application version using info!.

@Cleboost Cleboost merged commit ca859e6 into master May 10, 2026
1 check passed
@Cleboost Cleboost deleted the refactor/standard-logging branch May 10, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant